package com.herui.ota.controller;

import com.herui.ota.config.ControllerNames;
import com.herui.ota.entity.DeviceOtaChannel;
import com.herui.ota.entity.DeviceOtaEvent;
import com.herui.ota.pojo.form.DeviceOtaChannelFilterForm;
import com.herui.ota.pojo.form.DeviceOtaEventFilterForm;
import com.herui.ota.pojo.form.NoneFilterForm;
import com.herui.ota.pojo.vo.DeviceOtaEventChannel;
import com.herui.ota.service.DeviceOtaChannelService;
import com.herui.ota.service.DeviceOtaEventService;
import com.herui.ota.service.iml.DeviceOtaChannelServiceIml;
import com.mlnx.common.entity.ResponseData;
import io.swagger.annotations.Api;
import org.shan.spring.base.CurdBaseController;
import org.shan.spring.base.annotations.SysLog;
import org.shan.spring.mybatis.service.ICurdService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.io.IOException;
import java.util.List;

@Api(value = ControllerNames.DEVICEOTAChannelName + "接口", tags = {ControllerNames.DEVICEOTAChannelName + "接口"})
@SysLog(title = ControllerNames.DEVICEOTAChannelName)
@RestController
@RequestMapping("/otaChannel")
public class DeviceOtaChannelController extends CurdBaseController<DeviceOtaChannel, DeviceOtaChannel,
        DeviceOtaChannel, DeviceOtaChannelFilterForm> {
    @Autowired
    private DeviceOtaChannelService service;

    @Override
    public ICurdService getService() {
        return service;
    }

    @Override
    public DeviceOtaChannel newInstance(Integer id) {
        DeviceOtaChannel soft = new DeviceOtaChannel();
        soft.setId(id);
        return soft;
    }

}
